package com.erlin.platform.controller.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel
@Getter
@Setter
public class AddNewUserParam implements Serializable {
    @ApiModelProperty("用户名")
    @NotBlank
    private String username;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("密码")
    @NotBlank
    private String password;
    @ApiModelProperty("头像")
    private String icon;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("备注")
    private String note;
    @ApiModelProperty("用户角色id 不传此值默认为后台用户")
    private Long roleId;
    @ApiModelProperty("电话号码")
    private String phoneNum;
}
